package com.zdj.bean_validation;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author zdj
 * @date 2023-03-21 17:07
 */
@Data
public class Person {

    @NotNull
    public String name;

    @NotNull
    @Min(0)
    public Integer age;
}
